package cc.comac.mom.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipDevOpParamService;
import cc.comac.mom.bean.EquipDevOpParam;
import cc.comac.mom.bean.EquipDevOpParamBean;

@RestController
@RequestMapping(value ="/EquipDevOpParam")
public class EquipDevOpParamController {
	@Autowired
	private EquipDevOpParamService equipDevOpParamService;
	
	@RequestMapping(value = "/save",method = RequestMethod.POST)
	public Object save(@RequestBody EquipDevOpParam obj) {
		
		return equipDevOpParamService.save(obj);
		
	}
	
	@RequestMapping(value = "/update",method = RequestMethod.POST)
	public Object update(@RequestBody EquipDevOpParam obj) {
		
		return equipDevOpParamService.update(obj);
		
	}
	
	@RequestMapping(value = "/delete",method = RequestMethod.POST)
	public Object delete(@RequestBody EquipDevOpParam obj) {
		
		return equipDevOpParamService.delete(obj);
		
	}
	
	@RequestMapping(value = "/getById",method = RequestMethod.POST)
	public EquipDevOpParam getById(@RequestBody EquipDevOpParam obj) {
		return equipDevOpParamService.getById(obj);
		
	}
	
	@RequestMapping(value = "/selectByCondition",method = RequestMethod.POST)
	public EquipDevOpParamBean selectByCondition(@RequestBody EquipDevOpParam obj) {
		return equipDevOpParamService.selectByCondition(obj);
		
	}
}
